![]() |
ALMaSS
1.0
The Animal, Landscape and Man Simulation System
|
a data structure to hold goose memory location attributes More...
#include <GooseMemoryMap.h>
Public Member Functions | |
GooseMemoryLocation () | |
GooseMemoryLocation default constructor. More... | |
bool | operator< (const GooseMemoryLocation &gml) |
operator definition for comparing polygon id numbers More... | |
void | CalcScore (int a_dist, double a_flightcost, int a_expectedforagingtime) |
Updates the m_score value. More... | |
bool | ShouldDelete () |
Test to see if a memory is too old to remember any longer. More... | |
Public Attributes | |
int | m_age |
how old the memory is More... | |
int | m_x |
x-coordinate More... | |
int | m_y |
y-coordinate More... | |
int | m_polygonid |
the unique polygon identification More... | |
double | m_grain |
the grain resource at the location as intake rate kJ/min More... | |
double | m_maize |
the maize resource at the location as intake rate kJ/min More... | |
double | m_grazing |
the grazing resource at the location as intake rate kJ/min More... | |
double | m_foodresource |
The max food intake rate (kJ/min) at the location. More... | |
double | m_threat |
the threat-level memory strength More... | |
double | m_score |
A score used to assess the location. More... | |
Static Public Attributes | |
static int | m_infinitememorystop = 0 |
the age at which a memory is removed. More... | |
a data structure to hold goose memory location attributes
|
inline |
GooseMemoryLocation default constructor.
References m_age, m_foodresource, m_grain, m_grazing, m_infinitememorystop, m_maize, m_polygonid, m_threat, m_x, and m_y.
|
inline |
Updates the m_score value.
References m_foodresource, m_score, and m_threat.
|
inline |
operator definition for comparing polygon id numbers
References m_polygonid.
|
inline |
Test to see if a memory is too old to remember any longer.
References m_age, and m_infinitememorystop.
Referenced by IsMarkedToDelete().
int GooseMemoryLocation::m_age |
how old the memory is
Referenced by GooseMemoryLocation(), and ShouldDelete().
double GooseMemoryLocation::m_foodresource |
The max food intake rate (kJ/min) at the location.
Referenced by CalcScore(), Goose_Base::EvaluateForageToHopLoc(), GooseMemoryLocation(), GooseMemoryMap::MemAdd(), Goose_Base::On_Bang(), and Goose_Base::st_ChooseForageLocation().
double GooseMemoryLocation::m_grain |
the grain resource at the location as intake rate kJ/min
Referenced by Goose_Base::EvaluateForageToHopLoc(), GooseMemoryLocation(), GooseMemoryMap::MemAdd(), and Goose_Base::st_ChooseForageLocation().
double GooseMemoryLocation::m_grazing |
the grazing resource at the location as intake rate kJ/min
Referenced by Goose_Base::EvaluateForageToHopLoc(), GooseMemoryLocation(), GooseMemoryMap::MemAdd(), and Goose_Base::st_ChooseForageLocation().
|
static |
the age at which a memory is removed.
Referenced by GooseMemoryLocation(), GooseMemoryMap::GooseMemoryMap(), and ShouldDelete().
double GooseMemoryLocation::m_maize |
the maize resource at the location as intake rate kJ/min
Referenced by Goose_Base::EvaluateForageToHopLoc(), GooseMemoryLocation(), GooseMemoryMap::MemAdd(), and Goose_Base::st_ChooseForageLocation().
int GooseMemoryLocation::m_polygonid |
the unique polygon identification
Referenced by Goose_Base::EvaluateForageToHopLoc(), GooseMemoryLocation(), GooseMemoryMap::MemAdd(), Goose_Base::On_Bang(), operator<(), and Goose_Base::st_ChooseForageLocation().
double GooseMemoryLocation::m_score |
A score used to assess the location.
Referenced by CalcScore(), Goose_Base::EvaluateForageToHopLoc(), GooseMemoryMap::GetBestFeedingScore(), Goose_Base::On_Bang(), and Goose_Base::st_ChooseForageLocation().
double GooseMemoryLocation::m_threat |
the threat-level memory strength
Referenced by CalcScore(), Goose_Base::EvaluateForageToHopLoc(), GooseMemoryLocation(), Goose_Base::On_Bang(), and Goose_Base::st_ChooseForageLocation().
int GooseMemoryLocation::m_x |
x-coordinate
Referenced by Goose_Base::EvaluateForageToHopLoc(), GooseMemoryLocation(), Goose_Base::On_Bang(), and Goose_Base::st_ChooseForageLocation().
int GooseMemoryLocation::m_y |
y-coordinate
Referenced by Goose_Base::EvaluateForageToHopLoc(), GooseMemoryLocation(), Goose_Base::On_Bang(), and Goose_Base::st_ChooseForageLocation().